package com.tm.media.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tm.media.model.entity.ChannelEntity;
import com.tm.media.model.mapper.ChannelMapper;
import com.tm.media.service.ChannelService;
import com.tm.media.utils.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Ly
 * @Data 2023/2/23 18:49
 * @ClassName ChannelServiceImpl
 */
@Service
public class ChannelServiceImpl extends ServiceImpl<ChannelMapper, ChannelEntity> implements ChannelService {
   @Autowired
   private ChannelMapper channelMapper;
    @Override
    public Result channels() {
        return  Result.SUCCESS(channelMapper.selectList(null));
    }
}
